﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataBase
{
    public static class DBLibrary
    {
        public static bool checkEmailValidity(String email)
        {
            bool result = (email.Contains("@") && email.Contains("."));
            char[] emailChars = email.ToCharArray();
            foreach (char ch in emailChars)
            {
                if (Char.IsWhiteSpace(ch)) return false;
            }
            return result;
        }



    }
}
